@isTest
private class AttachmentWorkOrderHandlerTest {
    static testMethod void testMethod1() {
        Account acc = TestUtils.createAccount();
		insert acc;
		Product__c pro = TestUtils.createProduct();
		pro.Category0__c='仪器';
		insert pro;
		        
        Case case2 = new Case(
			RecordTypeId=Utils.getRecordTypeIdByDevNameAndObjName('Service', 'Case'),
			Account=acc,
			Origin='电话',
			Status='处理中',
			Manufacturer__c=pro.Id);
		insert case2;
        
	
		WorkOrder__c WO2 = new WorkOrder__c(
			RecordTypeId=Utils.getRecordTypeIdByDevNameAndObjName('Reagents', 'WorkOrder__c'),
			Case__c=case2.Id,
			Status__c='生单',
			WhetherToMakeASingle__c='否');
		insert WO2;

		Attachment att1 = new Attachment(
			Name='test.jpg',
			Body=Blob.ValueOf('123'),
			ParentId=WO2.Id);
		insert att1;

		
    }
}